You can't use winapi in unix. If you want to be Lazarus/windows only then just re-add the windows unit to uses section.

If you want to be cross-platform then use fpc specific rtl methods and/or {$ifdef} where needed.

There are now alot of nice abstraction units which alleviate some of the more common winapi stuff (eg: dynlibs unit).