build: module: Add windows compatibility

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>