Added compilation flags for mongoose