Oups, forgot to link against advapi32 too (for registry functions) xD