fixes #14

had pre and post backwards. also fixed the windows build settings.